#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
# Run `pod lib lint wechatpay_demo_plugin.podspec' to validate before publishing.
#
Pod::Spec.new do |s|

  # 插件的名称和文件名保持一致
  s.name             = 'wechatpay_demo_plugin'

  # 插件的版本pod版本号
  s.version          = '0.0.1'
  s.summary          = 'A new flutter plugin project.'
  s.description      = <<-DESC
A new flutter plugin project.
                       DESC
  s.homepage         = 'http://example.com'
  s.license          = { :file => '../LICENSE' }
  s.author           = { 'Your Company' => 'email@example.com' }

  # 表示改插件的源代码就在当前目录
  s.source           = { :path => '.' }

  # 执行 header文件和source文件路径,
  s.source_files = 'Classes/**/*'
  s.public_header_files = 'Classes/**/*.h'

  # 所有插件均依赖与Flutter.framework
  s.dependency 'Flutter'

  # 支持的平台以及 development target
  s.platform = :ios, '8.0'

  # 插件依赖
  s.dependency 'WeChatPay'

  # 指定工程有静态库依赖,避免与主工程动冲突
  s.static_framework = true

  # Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
  s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' }
end
